/**
 * app main
 */
import { NgModule } from '@angular/core';
import { BrowserModule, Title } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

/**
 * 开发时使用Inmemory服务
 */
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryDataService } from '../../api/in-memory-data.service';

import { CoreModule } from './pages/core/module.core';
import { AppComponent } from './component.app';
import { PagesModule } from './pages/module.pages';
import { AppRouter } from './router.app';

@NgModule({
    imports: [
        BrowserModule,
        FormsModule,
        HttpModule,
        InMemoryWebApiModule.forRoot(InMemoryDataService),
        CoreModule,
        PagesModule,
        AppRouter
    ],
    declarations: [
        AppComponent
    ],
    providers: [
        Title
    ],
    bootstrap: [
        AppComponent
    ]
})
export class App { }